<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
    <title>用户登录</title>
    <link rel="stylesheet" type="text/css" href="inc/styles.css">
    <script src="js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#J_reg").click(function(){
            self.location.href="<s:url value="user_reg.action"/>";
        })
        $("#J_form").submit(function () {
            if ($("#J_userId").val() == "") {
                alert("请输入登录账号！");
                return false;
            }
            if ($("#J_password").val() == "") {
                alert("请输入密码！");
                return false;
            }
            return true;
        })
    })
</script>
</head>
<%-- <s:form action="login" method="post"> --%>
<body>
<div class="htmleaf-container">
	<div class="wrapper">
		<div class="container">
			<h1>图书管理系统</h1>
			
			<form class="form" action="user_dologin.action" method="post" >
				<input type="text" placeholder="帐号" name="userId">
				<input type="password" placeholder="密码" name="password">
				<button type="submit" >登录</button>
			</form>
		</div>
		
		<ul class="bg-bubbles">
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
		</ul>
	</div>
</div>

<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script>
$('#login-button').click(function (event) {
	event.preventDefault();
	$('form').fadeOut(500);
	$('.wrapper').addClass('form-success');
});
</script>


<%-- </s:form> --%>
</body>
</html>